package com.spring.demos.ioccontainer.dao;

import com.spring.demos.ioccontainer.pojo.FixedDepositDetails;

import java.util.List;

public interface FixedDepositDao {
    //保存账户
    void saveDepositDetail(FixedDepositDetails fixedDepositDetails);
    //批量保存用户账号
    int[] batchSaveDepositDetail(List<FixedDepositDetails> depositDetails);
    //查询账户
    FixedDepositDetails queryDepositById(String accountNum);
    //删除账户
    void deleteDepositById(String accountNum);
    //存款
    void saveMoney(String accountNum,float money);
    //取钱
    void getMoney(String accountNum,float money);

}
